Integrand size = 19, antiderivative size = 158 \[ \int \frac {x^{-1-\frac {n}{3}}}{a+b x^n} \, dx=-\frac {3 x^{-n/3}}{a n}-\frac {\sqrt {3} \sqrt [3]{b} \arctan \left (\frac {\sqrt [3]{b}-2 \sqrt [3]{a} x^{-n/3}}{\sqrt {3} \sqrt [3]{b}}\right )}{a^{4/3} n}+\frac {\sqrt [3]{b} \log \left (\sqrt [3]{b}+\sqrt [3]{a} x^{-n/3}\right )}{a^{4/3} n}-\frac {\sqrt [3]{b} \log \left (b^{2/3}+a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}\right )}{2 a^{4/3} n} \]
-3/a/n/(x^(1/3*n))+b^(1/3)*ln(b^(1/3)+a^(1/3)/(x^(1/3*n)))/a^(4/3)/n-1/2*b ^(1/3)*ln(b^(2/3)+a^(2/3)/(x^(2/3*n))-a^(1/3)*b^(1/3)/(x^(1/3*n)))/a^(4/3) /n-b^(1/3)*arctan(1/3*(b^(1/3)-2*a^(1/3)/(x^(1/3*n)))/b^(1/3)*3^(1/2))*3^( 1/2)/a^(4/3)/n
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.04 (sec) , antiderivative size = 32, normalized size of antiderivative = 0.20 \[ \int \frac {x^{-1-\frac {n}{3}}}{a+b x^n} \, dx=-\frac {3 x^{-n/3} \operatorname {Hypergeometric2F1}\left (-\frac {1}{3},1,\frac {2}{3},-\frac {b x^n}{a}\right )}{a n} \]
Time = 0.32 (sec) , antiderivative size = 156, normalized size of antiderivative = 0.99, number of steps used = 12, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.579, Rules used = {868, 772, 843, 750, 16, 1142, 25, 27, 1082, 217, 1103}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {x^{-\frac {n}{3}-1}}{a+b x^n} \, dx\) |
\(\Big \downarrow \) 868 |
\(\displaystyle -\frac {3 \int \frac {1}{b x^n+a}dx^{-n/3}}{n}\) |
\(\Big \downarrow \) 772 |
\(\displaystyle -\frac {3 \int \frac {x^{-n}}{a x^{-n}+b}dx^{-n/3}}{n}\) |
\(\Big \downarrow \) 843 |
\(\displaystyle -\frac {3 \left (\frac {x^{-n/3}}{a}-\frac {b \int \frac {1}{a x^{-n}+b}dx^{-n/3}}{a}\right )}{n}\) |
\(\Big \downarrow \) 750 |
\(\displaystyle -\frac {3 \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {\int \frac {2 \sqrt [3]{b}-\sqrt [3]{a} x^{-n/3}}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}}{3 b^{2/3}}+\frac {\int \frac {1}{\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}}dx^{-n/3}}{3 b^{2/3}}\right )}{a}\right )}{n}\) |
\(\Big \downarrow \) 16 |
\(\displaystyle -\frac {3 \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {\int \frac {2 \sqrt [3]{b}-\sqrt [3]{a} x^{-n/3}}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}}{3 b^{2/3}}+\frac {\log \left (\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}\right )}{3 \sqrt [3]{a} b^{2/3}}\right )}{a}\right )}{n}\) |
\(\Big \downarrow \) 1142 |
\(\displaystyle -\frac {3 \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {\frac {3}{2} \sqrt [3]{b} \int \frac {1}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}-\frac {\int -\frac {\sqrt [3]{a} \left (\sqrt [3]{b}-2 \sqrt [3]{a} x^{-n/3}\right )}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}}{2 \sqrt [3]{a}}}{3 b^{2/3}}+\frac {\log \left (\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}\right )}{3 \sqrt [3]{a} b^{2/3}}\right )}{a}\right )}{n}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {3 \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {\frac {3}{2} \sqrt [3]{b} \int \frac {1}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}+\frac {\int \frac {\sqrt [3]{a} \left (\sqrt [3]{b}-2 \sqrt [3]{a} x^{-n/3}\right )}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}}{2 \sqrt [3]{a}}}{3 b^{2/3}}+\frac {\log \left (\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}\right )}{3 \sqrt [3]{a} b^{2/3}}\right )}{a}\right )}{n}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {3 \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {\frac {3}{2} \sqrt [3]{b} \int \frac {1}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}+\frac {1}{2} \int \frac {\sqrt [3]{b}-2 \sqrt [3]{a} x^{-n/3}}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}}{3 b^{2/3}}+\frac {\log \left (\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}\right )}{3 \sqrt [3]{a} b^{2/3}}\right )}{a}\right )}{n}\) |
\(\Big \downarrow \) 1082 |
\(\displaystyle -\frac {3 \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {\frac {1}{2} \int \frac {\sqrt [3]{b}-2 \sqrt [3]{a} x^{-n/3}}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}+\frac {3 \int \frac {1}{-x^{-2 n/3}-3}d\left (1-\frac {2 \sqrt [3]{a} x^{-n/3}}{\sqrt [3]{b}}\right )}{\sqrt [3]{a}}}{3 b^{2/3}}+\frac {\log \left (\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}\right )}{3 \sqrt [3]{a} b^{2/3}}\right )}{a}\right )}{n}\) |
\(\Big \downarrow \) 217 |
\(\displaystyle -\frac {3 \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {\frac {1}{2} \int \frac {\sqrt [3]{b}-2 \sqrt [3]{a} x^{-n/3}}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}-\frac {\sqrt {3} \arctan \left (\frac {1-\frac {2 \sqrt [3]{a} x^{-n/3}}{\sqrt [3]{b}}}{\sqrt {3}}\right )}{\sqrt [3]{a}}}{3 b^{2/3}}+\frac {\log \left (\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}\right )}{3 \sqrt [3]{a} b^{2/3}}\right )}{a}\right )}{n}\) |
\(\Big \downarrow \) 1103 |
\(\displaystyle -\frac {3 \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {-\frac {\log \left (a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}\right )}{2 \sqrt [3]{a}}-\frac {\sqrt {3} \arctan \left (\frac {1-\frac {2 \sqrt [3]{a} x^{-n/3}}{\sqrt [3]{b}}}{\sqrt {3}}\right )}{\sqrt [3]{a}}}{3 b^{2/3}}+\frac {\log \left (\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}\right )}{3 \sqrt [3]{a} b^{2/3}}\right )}{a}\right )}{n}\) |
(-3*(1/(a*x^(n/3)) - (b*(Log[b^(1/3) + a^(1/3)/x^(n/3)]/(3*a^(1/3)*b^(2/3) ) + (-((Sqrt[3]*ArcTan[(1 - (2*a^(1/3))/(b^(1/3)*x^(n/3)))/Sqrt[3]])/a^(1/ 3)) - Log[b^(2/3) + a^(2/3)/x^((2*n)/3) - (a^(1/3)*b^(1/3))/x^(n/3)]/(2*a^ (1/3)))/(3*b^(2/3))))/a))/n
3.27.44.3.1 Defintions of rubi rules used
Int[(c_.)/((a_.) + (b_.)*(x_)), x_Symbol] :> Simp[c*(Log[RemoveContent[a + b*x, x]]/b), x] /; FreeQ[{a, b, c}, x]
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[-b, 2])^( -1))*ArcTan[Rt[-b, 2]*(x/Rt[-a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] & & (LtQ[a, 0] || LtQ[b, 0])
Int[((a_) + (b_.)*(x_)^3)^(-1), x_Symbol] :> Simp[1/(3*Rt[a, 3]^2) Int[1/ (Rt[a, 3] + Rt[b, 3]*x), x], x] + Simp[1/(3*Rt[a, 3]^2) Int[(2*Rt[a, 3] - Rt[b, 3]*x)/(Rt[a, 3]^2 - Rt[a, 3]*Rt[b, 3]*x + Rt[b, 3]^2*x^2), x], x] /; FreeQ[{a, b}, x]
Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Int[x^(n*p)*(b + a/x^n)^p, x] /; FreeQ[{a, b}, x] && ILtQ[n, 0] && IntegerQ[p]
Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[c^(n - 1)*(c*x)^(m - n + 1)*((a + b*x^n)^(p + 1)/(b*(m + n*p + 1))), x] - Simp[ a*c^n*((m - n + 1)/(b*(m + n*p + 1))) Int[(c*x)^(m - n)*(a + b*x^n)^p, x] , x] /; FreeQ[{a, b, c, p}, x] && IGtQ[n, 0] && GtQ[m, n - 1] && NeQ[m + n* p + 1, 0] && IntBinomialQ[a, b, c, n, m, p, x]
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[1/(m + 1) Subst[Int[(a + b*x^Simplify[n/(m + 1)])^p, x], x, x^(m + 1)], x] /; FreeQ[ {a, b, m, n, p}, x] && IntegerQ[Simplify[n/(m + 1)]] && !IntegerQ[n]
Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> With[{q = 1 - 4*S implify[a*(c/b^2)]}, Simp[-2/b Subst[Int[1/(q - x^2), x], x, 1 + 2*c*(x/b )], x] /; RationalQ[q] && (EqQ[q^2, 1] || !RationalQ[b^2 - 4*a*c])] /; Fre eQ[{a, b, c}, x]
Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> S imp[d*(Log[RemoveContent[a + b*x + c*x^2, x]]/b), x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]
Int[((d_.) + (e_.)*(x_))/((a_) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> S imp[(2*c*d - b*e)/(2*c) Int[1/(a + b*x + c*x^2), x], x] + Simp[e/(2*c) Int[(b + 2*c*x)/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e}, x]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 3.82 (sec) , antiderivative size = 57, normalized size of antiderivative = 0.36
method | result | size |
risch | \(-\frac {3 x^{-\frac {n}{3}}}{a n}+\left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (a^{4} n^{3} \textit {\_Z}^{3}-b \right )}{\sum }\textit {\_R} \ln \left (x^{\frac {n}{3}}+\frac {a^{3} n^{2} \textit {\_R}^{2}}{b}\right )\right )\) | \(57\) |
Time = 0.28 (sec) , antiderivative size = 145, normalized size of antiderivative = 0.92 \[ \int \frac {x^{-1-\frac {n}{3}}}{a+b x^n} \, dx=-\frac {6 \, x x^{-\frac {1}{3} \, n - 1} - 2 \, \sqrt {3} \left (\frac {b}{a}\right )^{\frac {1}{3}} \arctan \left (\frac {2 \, \sqrt {3} a x x^{-\frac {1}{3} \, n - 1} \left (\frac {b}{a}\right )^{\frac {2}{3}} - \sqrt {3} b}{3 \, b}\right ) - 2 \, \left (\frac {b}{a}\right )^{\frac {1}{3}} \log \left (\frac {x x^{-\frac {1}{3} \, n - 1} + \left (\frac {b}{a}\right )^{\frac {1}{3}}}{x}\right ) + \left (\frac {b}{a}\right )^{\frac {1}{3}} \log \left (\frac {x^{2} x^{-\frac {2}{3} \, n - 2} - x x^{-\frac {1}{3} \, n - 1} \left (\frac {b}{a}\right )^{\frac {1}{3}} + \left (\frac {b}{a}\right )^{\frac {2}{3}}}{x^{2}}\right )}{2 \, a n} \]
-1/2*(6*x*x^(-1/3*n - 1) - 2*sqrt(3)*(b/a)^(1/3)*arctan(1/3*(2*sqrt(3)*a*x *x^(-1/3*n - 1)*(b/a)^(2/3) - sqrt(3)*b)/b) - 2*(b/a)^(1/3)*log((x*x^(-1/3 *n - 1) + (b/a)^(1/3))/x) + (b/a)^(1/3)*log((x^2*x^(-2/3*n - 2) - x*x^(-1/ 3*n - 1)*(b/a)^(1/3) + (b/a)^(2/3))/x^2))/(a*n)
Result contains complex when optimal does not.
Time = 1.03 (sec) , antiderivative size = 189, normalized size of antiderivative = 1.20 \[ \int \frac {x^{-1-\frac {n}{3}}}{a+b x^n} \, dx=\frac {x^{- \frac {n}{3}} \Gamma \left (- \frac {1}{3}\right )}{a n \Gamma \left (\frac {2}{3}\right )} - \frac {\sqrt [3]{b} e^{- \frac {2 i \pi }{3}} \log {\left (1 - \frac {\sqrt [3]{b} x^{\frac {n}{3}} e^{\frac {i \pi }{3}}}{\sqrt [3]{a}} \right )} \Gamma \left (- \frac {1}{3}\right )}{3 a^{\frac {4}{3}} n \Gamma \left (\frac {2}{3}\right )} - \frac {\sqrt [3]{b} \log {\left (1 - \frac {\sqrt [3]{b} x^{\frac {n}{3}} e^{i \pi }}{\sqrt [3]{a}} \right )} \Gamma \left (- \frac {1}{3}\right )}{3 a^{\frac {4}{3}} n \Gamma \left (\frac {2}{3}\right )} - \frac {\sqrt [3]{b} e^{\frac {2 i \pi }{3}} \log {\left (1 - \frac {\sqrt [3]{b} x^{\frac {n}{3}} e^{\frac {5 i \pi }{3}}}{\sqrt [3]{a}} \right )} \Gamma \left (- \frac {1}{3}\right )}{3 a^{\frac {4}{3}} n \Gamma \left (\frac {2}{3}\right )} \]
gamma(-1/3)/(a*n*x**(n/3)*gamma(2/3)) - b**(1/3)*exp(-2*I*pi/3)*log(1 - b* *(1/3)*x**(n/3)*exp_polar(I*pi/3)/a**(1/3))*gamma(-1/3)/(3*a**(4/3)*n*gamm a(2/3)) - b**(1/3)*log(1 - b**(1/3)*x**(n/3)*exp_polar(I*pi)/a**(1/3))*gam ma(-1/3)/(3*a**(4/3)*n*gamma(2/3)) - b**(1/3)*exp(2*I*pi/3)*log(1 - b**(1/ 3)*x**(n/3)*exp_polar(5*I*pi/3)/a**(1/3))*gamma(-1/3)/(3*a**(4/3)*n*gamma( 2/3))
\[ \int \frac {x^{-1-\frac {n}{3}}}{a+b x^n} \, dx=\int { \frac {x^{-\frac {1}{3} \, n - 1}}{b x^{n} + a} \,d x } \]
\[ \int \frac {x^{-1-\frac {n}{3}}}{a+b x^n} \, dx=\int { \frac {x^{-\frac {1}{3} \, n - 1}}{b x^{n} + a} \,d x } \]
Timed out. \[ \int \frac {x^{-1-\frac {n}{3}}}{a+b x^n} \, dx=\int \frac {1}{x^{\frac {n}{3}+1}\,\left (a+b\,x^n\right )} \,d x \]